package com.example.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;

public class UserPage extends InternalPage {

	
	@FindBy(id = "username")	
	public WebElement usernameField;
	
	@FindBy(name = "email")
	public WebElement emailField;
	
	@FindBy(id = "password")
	public WebElement passwordField;
	
	@FindBy(id = "password2")
	public WebElement password2Field;
	
	@FindBy(name = "submit")
	public WebElement saveButton;

	@FindBys({@FindBy(className = "content"), @FindBy(tagName = "h2")})
	public WebElement pageName;
	
	public boolean checkThisPage() {
		return pageName.isDisplayed();		
	}
}
